#include <stdlib.h>
#include <stdio.h>
#include <math.h>
#include <string.h>

int main(){
    int n;
    scanf("%d", &n);
    int arr[1005][1005];
    arr[0][0] = 1;
    printf("[");
    // #pragma omp parallel for
    for(int i = 0; i < n; i++){
        if(i != 0)
            printf(",");
        arr[i][0] = arr[i][i] = 1;
        #pragma omp parallel for
        for(int j = i - 1; j > 0; j--){
            arr[i][j] = arr[i - 1][j] + arr[i - 1][j - 1];
        }
        printf("[");
        for(int j = 0; j < i; j++){
            printf("%d,", arr[i][j]);
        }
        printf("%d]", arr[i][i]);
    }
    printf("]");
    return 0;
}